package com.yanqu.road.server.cmd.beauty;

import com.yanqu.road.pb.beauty.BeautyProto;
import com.yanqu.road.server.cmd.base.AbstractCommand;
import com.yanqu.road.server.command.Cmd;
import com.yanqu.road.server.gameplayer.GamePlayer;
import com.yanqu.road.server.gameplayer.module.player.BeautyModule;
import com.yanqu.road.message.YanQuMessage;
import com.yanqu.road.server.protocol.ClientProtocol;
import com.yanqu.road.server.protocol.GameProtocol;

/**
 * @author ：zfr
 * @date ：2021/9/28 19:19
 */
@Cmd(code = GameProtocol.S_STOP_BEAUTY_SKILL_MODIFY_AUTO, desc = "停止美女技能自动改装")
public class StopBeautySkillModifyAutoCmd extends AbstractCommand {
    @Override
    public boolean parseData(YanQuMessage packet) throws Exception {
        return true;
    }

    @Override
    public void execute(GamePlayer player, YanQuMessage packet) throws Exception {
        BeautyProto.StopBeautySkillModifyAutoRespMsg.Builder respMsg = BeautyProto.StopBeautySkillModifyAutoRespMsg.newBuilder();
        player.getModule(BeautyModule.class).stopVehicleSkillModifyAuto(respMsg);
        player.sendPacket(ClientProtocol.U_STOP_BEAUTY_SKILL_MODIFY_AUTO, respMsg);
    }

    @Override
    public void sendData(GamePlayer player) {

    }
}
